from django.db import models
from utils.basemodels import BaseModel


# Create your models here.
class NavModel(BaseModel):
    navname = models.CharField(max_length=40, verbose_name='导航名称')
    position = models.BooleanField(default=True, verbose_name='导航位置')
    link = models.CharField(max_length=100, verbose_name='导航顺序',blank=True,null=True)


    class Meta:
        db_table = 'fnav'



    def __str__(self):
        return self.navname